function getAllTaskStatus(){
    //调jiekou
     $.ajax({
       url: 'http://localhost:9090/allTaskStatus',
       type: 'GET',
      // data: JSON.stringify(data),
       contentType : "application/json;charset=UTF-8",
       dataType: "json",
       success: function(response) {
         // 请求成功时的回调函数
         console.log('登录成功:', response);
       },
       error: function(xhr, status, error) {
         // 请求失败时的回调函数
         console.log('登录失败:', error);
       }
     });
}

$(document).ready(function() {
  $("#myForm").submit(function(event) {
    event.preventDefault(); // 阻止默认的表单提交行为

    var TaskNo = $("#inputField").val(); // 获取输入框的值
    var Priority = $("#inputField1").val(); // 获取输入框的值
    var Location = $("#inputField2").val(); // 获取输入框的值
    var FinishAction = $("#inputField3").val(); // 获取输入框的值
    var data = { "TaskNo": TaskNo,"Priority":Priority,"Location":Location,"FinishAction":FinishAction };
    var param =JSON.stringify(data);
    $.ajax({
      type: "POST", // 指定请求类型为 POST
      url: "http://localhost:9090/addMoveTask", // 设置请求的 URL
      dataType: "json",
      contentType : "application/json;charset=UTF-8",
      data: param, // 将输入框的值作为参数传递
      success: function(response) {
        // 处理请求成功的逻辑
        console.log(response);
      },
      error: function(xhr, status, error) {
        // 处理请求失败的逻辑
        console.error(xhr, status, error);
      }
    });

  });
});